<template>

    <h3>组合式api</h3>
    <p ref="msg">模板引用</p>
</template>

<script>
import {ref,onMounted} from "vue"
const msg=ref(null)
onMounted(()=>{
    
    msg.value.innerHTML="修改"
})
</script>